package com.jintoufs.service.customer.impl;

import com.jintoufs.dao.customer.CustomerCouponMapper;
import com.jintoufs.domain.customer.CustomerCoupon;
import com.jintoufs.service.customer.CustomerCouponService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CustomerCouponServiceImpl implements CustomerCouponService {

    @Resource
    private CustomerCouponMapper customerCouponMapper;

    @Override
    public int inset(CustomerCoupon customerCoupon) {
        return customerCouponMapper.insertSelective(customerCoupon);
    }

    @Override
    public List<CustomerCoupon> queryByParam(Map<String, Object> param) {
        return customerCouponMapper.queryByParam(param);
    }

    @Override
    public List<String> queryIdByParam(Map<String, Object> param) {
        return customerCouponMapper.queryIdByParam(param);
    }
}
